package com.dongdong.api;


import com.dongdong.model.TbAddress;
import com.dongdong.model.TbUser;
import com.dongdong.vo.AddressVO;
import com.dongdong.vo.CartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("dongdong-user-service")
public interface AddressApi {   //openfeign的远程调用 映射对应方法

    @GetMapping("/address/selectAddrById")
    public TbAddress selectAddrById(@RequestParam Long id);

    @PostMapping("/address/add")
    public int add(@RequestBody AddressVO addressVO);


    @GetMapping("/user/queryUserByEmail")
    public TbUser queryUserByEmail(@RequestParam String email);



}
